<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>    	
<%@ taglib prefix="fn"  uri="http://java.sun.com/jsp/jstl/functions" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript"
	src="${pageContext.request.contextPath }/js/WdatePicker.js"></script>
<title>修改学生</title>
</head>
<body>


	
	<form action="studentMNGServlet?method=update" method="post">
		<input type="hidden" name="id" value="${student.id }">
		<table>

			<tr>
				<td>姓名：<input type="text" name="name" value="${student.name }" /></td>
				<td></td>
			</tr>
			<tr>
				<td>密码：<input type="text" name="passwd"
					value="${student.passwd }" /></td>
				<td>确认密码：<input type="password" name="passwd2"
					value="${student.passwd }" /></td>
			</tr>
			<tr>
				<td>年龄：<input type="text" name="age" value="${student.age }" /></td>
				<td>性别：<input type="radio" name="gender" value="1" <c:if test="${student.gender ==1 }" >checked='checked'</c:if>/>男<input
					type="radio" name="gender" value="0" <c:if test="${student.gender ==0 }" >checked='checked'</c:if>/>女
				</td>
			</tr>
			<tr>
				<td>爱好：
				<input type="checkbox" name="hobby" value="运动" <c:if test="${fn:indexOf(student.hobby,'运动')>-1 }" >checked='checked'</c:if>/>运动
				<input type="checkbox" name="hobby" value="旅游" <c:if test="${fn:indexOf(student.hobby,'旅游')>-1 }" >checked='checked'</c:if>/>旅游
				<input type="checkbox" name="hobby" value="学习" <c:if test="${fn:indexOf(student.hobby,'学习')>-1 }" >checked='checked'</c:if>/>学习
				</td>
				<td>生日：<input type="text" name="birthday"
					value="${student.birthday }" readyonly="readonly"
					onClick="WdatePicker()" /></td>
			</tr>
			<tr>
				<td>学历： <select name="edu">
						<option value=""></option>
						<option value="专科" <c:if test="${student.edu =='专科' }" >selected='selected'</c:if>>专科</option>
						<option value="本科" <c:if test="${student.edu =='本科' }" >selected='selected'</c:if>>本科</option>
						<option value="硕士" <c:if test="${student.edu =='硕士' }" >selected='selected'</c:if>>硕士</option>
				</select>

				</td>
				<td></td>
			</tr>
			<tr>
				<td><textarea cols="10" rows="20" name="remark">${student.remark }</textarea></td>
				<td><input type="submit" value="提交"></td>
			</tr>




		</table>



	</form>
</body>
</html>